<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta content="JUSTYLE,2010,{lang Spring_printing_embroidery_casual_Black}, {$cfg_site_name}" name="keywords">
<link href="{TPL}css/NewTopFoot.css" rel="Stylesheet" type="text/css">
<link type="text/css" rel="stylesheet" href="{TPL}css/AddItemPanel.css">
<script type="text/javascript" src="{TPL}js/jquery-1.4.1.min.js"></script>
<script type="text/javascript" src="{TPL}js/jQuery.Extend.js"></script>
<script src="{TPL}js/jQuery.Drag.min.js" type="text/javascript"></script>
<script type="text/javascript" src="{TPL}js/jquery.cookies.2.1.0.min.js"></script>
<script src="{TPL}js/Gobal.js" type="text/javascript"></script>
<link type="text/css" rel="stylesheet" href="{TPL}css/Product.css">
<script type="text/javascript" src="{TPL}js/jquery.json-1.3.min.js"></script>
   
    <script type="text/javascript">
        var flag = false;
        var pid = {$gid};
		var pimg="{$value['goodsimg']}";
        $(document).ready(function() {
            var pname = $.trim($(".you h1").text()).replace("\n","");
            var data = {};
            var newOptions = { domain: '', hoursToLive: 168 };
            try {
                data = $.evalJSON(jaaulde.utils.cookies.get("scan"));
            } catch (eee) {
                data = null;
            }
            if (data != null) {
                data = $.grep(data, function(item, index) { return item["id"] != pid; });
 
                if (data.length >= 10) flag = true;
                $.each(data, function(index, item) {
                    $("#scan").append("<li><a href='recommend.php?action=view&gid=" + item["id"] + "'><img src='" + item["pimg"] + "' alt='" + item["n"] + "'  /></a></li>");
                });
                if (flag) { data = $.grep(data, function(item, index) { return index < 9; }); }
                data = $.merge([{ "id": pid, "pimg": pimg, "n": pname}], data);
                jaaulde.utils.cookies.set("scan", $.toJSON(data), newOptions);
            }
            else {
                jaaulde.utils.cookies.set("scan", '[{"id":' + pid + ',"pimg":"' + pimg +'","n":"' + pname + '"}]', newOptions);
            }
            $(".ph dl").each(function() { $(this).mouseover(function() { $(".ph dl dt").hide(); $(".ph dl dd").show(); $(this).find("dd").hide(); $(this).find("dt").show(); }); });
            $(".ph dl:eq(0)").mouseover();
 
            $("#submitBtn").click(function() {
                $.ajax({
                    type: "POST",
                    url: "/ajax/recommend_ajax.php?action=addbuynum",
                    dataType: "json",
                    contentType: "application/json;utf-8",
                    data: "{'pid':'" + pid + "'}",
                    timeout: 10
                });
            });
        });
    </script>


<title>
	{$value['goodsname']} - {$cfg_site_name}
</title></head><body>


<form id="" action="###" method="post" name="">

{template 'header'}

    <div class="weizhi">
        <p>
            <b>{lang Location}：</b><a href="{url_recommend.php}">{lang Editor_Choice}</a>{$position}<span>&gt;</span><i>{$value['goodsname']}</i></p>
    </div>
    <div class="list">
        <div class="zuo">
            <div class="ranking">
			   <div class="wap_h2">
                <h2 class="tit_dian_h2">{lang Our_recommend}</h2>
				</div>	
                <div class="ph">
                    
                    {loop $leftarray $key $r}
                    <dl>
                        <dt {if $key==0}style="display: block;"{else}style="display: none;"{/if}>
                            <div class="img">
                                <a target="_blank" href="{url_recommend.php?action=view&gid=$r['gid']}">
                                <img alt="{$r['goodsname']}" src="{$r['goodsimg']}">
                                </a>
                            </div>
                            <div class="xiangxi">
                                <h1>
                                    <b>
                                        {echo $key+1}.</b> <a target="_blank" href="{url_recommend.php?action=view&gid=$r['gid']}">
                                            {substrs($r['goodsname'],45)}</a>
                                </h1>
                                <label>
                                    {$r['goodsprice']}</label>
                                <p>
                                    {lang Source_Site}：<span>{$r['shopname']}</span></p>
                            </div>
                        </dt>
                        <dd {if $key==0}style="display: none;"{else}style="display: block;"{/if}>
                            <span>{echo $key+1}</span>
                            <p>
                                <a target="_blank" href="{url_recommend.php?action=view&gid=$r['gid']}">
                                    {substrs($r['goodsname'],45)}</a>
                            </p>
                        </dd>
                    </dl>
					{/loop}

                </div>					
					

            </div>
            <div class="lately">
                <h2 class="tit_jiantou_h2">{lang recently_browsed}</h2>
                <ul id="scan">
                </ul>
            </div>
        </div>
        <div class="you">
            <h1>
               {$value['goodsname']}</h1>
            <div class="product">
                <div class="img">
                    <a href="?pid=8294">
                        <img alt="{$value['goodsname']}" src="{$value['goodsimg']}"></a>
                </div>
                <div class="parameter">
                    <div class="pl">
                      <p>{lang Recommendation_Index}：<img alt="{$value['rindex']}" src="{TPL}images/star{$value['rindex']}.gif"></p>
                        <dl>
                            <dt>￥{$value['goodsprice']}</dt>
                            
                        </dl>
                    </div>
                    <ul>
                        <li>{lang NO_purchasing}：{$value['buynum']}{lang Pieces}</li>
                        <li>{lang Views}：{$value['views']}{lang Times}</li>
                        <li>{lang Sources_business}：<a target="_blank" href="{$value['sellerurl']}">{$value['goodsseller']}</a><span>{$value['shopname']}</span></li>
                    </ul>
                    <div class="shopping">
                        <p>
                           {lang shopping_differ_source_information_subject}！</p>
                        <a style="cursor: pointer;" onClick="FastAddShow('{$value['goodsurl']}')" id="submitBtn">{lang i_like_Shopping}</a>
                    </div>
                </div>
            </div>
            <div class="reason">
                <h2>
                    {lang Recommended_reason}</h2>
                <p>
				{$value['why']}
				</p>
            </div>
            <div class="lm">
                <h3>
                    {lang Description}</h3>
            </div>
            <div class="miaoshu">
				{$value['about']}
            </div>
        </div>
    </div>

{template 'footer'}

    </form>

</body>
</html>